import request from '@/utils/request'

export function listuseHead(query) {
  return request({
    url: '/equipmentUse/useHead/list',
    method: 'get',
    params: query
  })
}

export function createuseHead(data) {
  return request({
    url: '/equipmentUse/useHead/create',
    method: 'post',
    data
  })
}

export function readuseHead(data) {
  return request({
    url: '/equipmentUse/useHead/get/' + data.id,
    method: 'get'
  })
}

export function updateuseHead(data) {
  return request({
    url: '/equipmentUse/useHead/update',
    method: 'post',
    data
  })
}

export function deleteuseHead(data) {
  return request({
    url: '/equipmentUse/useHead/delete',
    method: 'post',
    data
  })
}
